package com.mapull.entity;

import java.beans.PropertyEditorSupport;

/**
 * @author: mapull
 * @description: TypeConverter
 * @date:2020/03/21
 **/
public class ProductTypeConverter extends PropertyEditorSupport {

    public void keyToValue(String key) {
        setValue(ProductEnum.fromType(key));
    }
}
